package main

import (
	"dingbot/botserver"
	"dingbot/config"
	"dingbot/database"
	"dingbot/global"
	"dingbot/plugin"
	"dingbot/webui"

	"github.com/dingdinglz/dingtools/dinglog"
)

func main() {
	global.Logger = dinglog.NewLogger()
	config.Load()
	global.Logger.Info("正在启动pocketbase数据库...")
	database.Run()
	plugin.CheckDatabase()
	botserver.Start()
	global.Logger.Info("正在启动WebUI...")
	webui.Run()
}
